import request from '@/utils/request'

// 创建用户
export function createUser(params) {
  return request.post('/api/users/create', params)
}

// 删除用户
export function deleteUser(params) {
  return request({
    url: '/api/users/delete',
    method: 'post',
    params
  })
}

// 修改用户
export function editUser(params) {
  return request.post('/api/users/edit', params)
}

// 获取用户列表
export function getList(params) {
  return request({
    url: '/api/users/list',
    method: 'get',
    params
  })
  // return request.get('/api/users', params)
}
